package com.yy.bolg.dao;

import com.yy.bolg.entity.CustomerBean;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;
import java.util.List;

/**
 * 客户Dao层
 * @author enmaoFu
 * @date 2024-11-02
 */
@Mapper
public interface CustomerDao extends BaseDao<CustomerBean>{

    CustomerBean findOneByPhone(Serializable phone);

    CustomerBean findOneByEmergencyPhone(Serializable phone);

    List<CustomerBean> findAllByCondition(CustomerBean bean);

    int signIn(CustomerBean bean);

    int signOut(CustomerBean bean);

    int upState(CustomerBean bean);

    CustomerBean findOneByHikUnitId(Serializable unitId);

    int bindHik(CustomerBean bean);

    int upCustomerUserInfo(CustomerBean bean);

    int upCustomerEmergencyUserInfo(CustomerBean bean);

    int upCustomerInfo(CustomerBean bean);

}
